package com.xmut.mall.order.service.impl;

import com.xmut.mall.order.utils.RespBean;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.utils.Query;

import com.xmut.mall.order.dao.OrderLogDao;
import com.xmut.mall.order.entity.OrderLogEntity;
import com.xmut.mall.order.service.OrderLogService;


@Service("orderLogService")
public class OrderLogServiceImpl extends ServiceImpl<OrderLogDao, OrderLogEntity> implements OrderLogService {


    /**
     * 增加订单的日志
     * @param orderLogEntity
     * @return
     */
    @Override
    public RespBean addOrderLog(OrderLogEntity orderLogEntity) {
        boolean save = this.save(orderLogEntity);
        if (save){
            return RespBean.success("订单日志保存成功");
        }else {
            return RespBean.error("订单日志保存失败");
        }

    }
}